package com.webside.banner.model;

import java.io.Serializable;

public class BannerEntity implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;
	/**
	 * 图片地址
	 */
    private String imgUrl;
    /**
     * 链接地址
     */
    private String linkUrl;
    /**
     * 页面排序
     */
    private Integer sort;
    /**
     * 合作伙伴或banner
     */
    private String target;
   /**
    * 合作伙伴或banner
    */
    private String bName;
    /**
     * 标题
     */
    private String title;
    /**
     * 描述
     */
    private String summary;
    /**
     * 通道
     */
    private String channel;
    /**
     * 集数
     */
    private String setSum;
    
    public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getSetSum() {
		return setSum;
	}

	public void setSetSum(String setSum) {
		this.setSum = setSum;
	}

	/**
     * 
     * @return
     */
    public String getbName() {
    	if(this.target.startsWith("BANNER")){
			return "轮播图";
		}else if(this.target.startsWith("PARTNER")){
			return "合作伙伴";
		}
		return bName;
	}

	public void setbName(String bName) {
		this.bName = bName;
	} 
 
	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl == null ? null : imgUrl.trim();
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl == null ? null : linkUrl.trim();
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}